package com.lijiajian.Service;

import com.lijiajian.base.BaseService;
import com.lijiajian.dao.PermissionMapper;
import com.lijiajian.pojo.Permission;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PermissionService extends BaseService<Permission,Integer> {
    @Resource
    private PermissionMapper permissionMapper;

    //通过用户id查询对应的资源列表（资源权限码）
    public List<String> queryUserHasRoleHasPermissionByUserId(Integer userId){
        return permissionMapper.queryUserHasRoleHasPermissionByUserId(userId);
    };
}
